package com.wzy.ldap;

import com.wzy.ldap.ioc.ann.MyBeanImport;
import com.wzy.ldap.service.HelloService;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.context.annotation.Import;

@SpringBootTest
//@ContextConfiguration(locations = "classpath:ioc/demo.xml")
@Import(MyBeanImport.class)
public class SpringTest2 {
    @Autowired
    private HelloService helloService;

    @Test
    public void test() {
        System.out.println(helloService.hello());
    }
}
